package com.fingerth.myjsondemo.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

public class UserBean {

    @JsonProperty("userName")
    public String name;

    public int age;

    @JsonProperty("userSignature")
    public String signature;

    @JsonIgnore
    public String remark;

    public String remark2;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss:SSS",timezone="GMT+8")
    private Date date;

    public UserBean() {

    }

    public UserBean(String name, int age, String signature) {
        this.name = name;
        this.age = age;
        this.signature = signature;
        this.date = new Date();
    }
}
